﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using LeadThing.AbpZeroTemplate.Dto;
using LeadThing.AbpZeroTemplate.FireFightingWorks.Dtos;

namespace LeadThing.AbpZeroTemplate.FireFightingWorks
{
    /// <summary>
    /// 消防工作服务接口
    /// </summary>
    public interface IFireFightingWorkAppService : IApplicationService
    {
        #region 扩展方法

        /// <summary>
        /// 获取全部消防工作加载到前台地图
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        List<FireFightingWorkLoadPageDto> GetAllFireFightingWorksLoadPage(GetFireFightingWorkInput input);

        #endregion

        #region 消防工作管理

        /// <summary>
        /// 根据查询条件获取消防工作分页列表
        /// </summary>
        Task<PagedResultDto<FireFightingWorkListDto>> GetPagedFireFightingWorksAsync(GetFireFightingWorkInput input);

        /// <summary>
        /// 通过Id获取消防工作信息进行编辑或修改 
        /// </summary>
        Task<GetFireFightingWorkForEditOutput> GetFireFightingWorkForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 通过指定id获取消防工作ListDto信息
        /// </summary>
        Task<FireFightingWorkListDto> GetFireFightingWorkByIdAsync(EntityDto<long> input);



        /// <summary>
        /// 新增或更改消防工作
        /// </summary>
        Task CreateOrUpdateFireFightingWorkAsync(CreateOrUpdateFireFightingWorkInput input);





        /// <summary>
        /// 新增消防工作
        /// </summary>
        Task<FireFightingWorkEditDto> CreateFireFightingWorkAsync(FireFightingWorkEditDto input);

        /// <summary>
        /// 更新消防工作
        /// </summary>
        Task UpdateFireFightingWorkAsync(FireFightingWorkEditDto input);

        /// <summary>
        /// 删除消防工作
        /// </summary>
        Task DeleteFireFightingWorkAsync(EntityDto<long> input);

        /// <summary>
        /// 批量删除消防工作
        /// </summary>
        Task BatchDeleteFireFightingWorkAsync(List<long> input);

        #endregion

        #region Excel导出功能



        /// <summary>
        /// 获取消防工作信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetFireFightingWorkToExcel();

        #endregion

        #region APP

        /// <summary>
        /// 根据查询条件获取消防工作分页列表
        /// </summary>
        Task<PagedResultDto<FireFightingWorkAPPListDto>> GetPagedFireFightingWorksAPPAsync(GetFireFightingWorkAPPInput input);

        /// <summary>
        /// 新增消防工作
        /// </summary>
        Task<FireFightingWorkAPPEditDto> CreateFireFightingWorkAPPAsync(FireFightingWorkAPPEditDto input);

        /// <summary>
        /// 通过Id获取消防工作信息进行编辑或修改 
        /// </summary>
        Task<FireFightingWorkGetModelAPPEditDto> GetFireFightingWorkForEditAPPAsync(EntityDto<string> Id);

        #endregion

    }
}
